package pe.com.bbva.ge.domain.solicitud;

import java.math.BigInteger;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import pe.com.bbva.ge.domain.base.Auditoria;
import pe.com.bbva.ge.domain.configuracion.Valor;


/**
 * The persistent class for the SOL_DETALLE_OTRO_SERVICIO database table.
 * 
 */
@Entity
@Table(name="SOL_DETALLE_OTRO_SERVICIO")
public class DetalleOtroServicio extends Auditoria {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 2220282093216231233L;

	@Id
	@Column(unique = true, nullable = false, precision = 19)
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "SEQ_DETALLE_OTRO_SERVICIO")
	@TableGenerator(name = "SEQ_DETALLE_OTRO_SERVICIO", table = DetalleOtroServicio.SEQ_TABLA, pkColumnName = DetalleOtroServicio.SEQ_TABLA_PK, initialValue = 1, valueColumnName = DetalleOtroServicio.SEQ_TABLA_COLUMN, pkColumnValue = "pe.com.bbva.ge.domain.solicitud.DetalleOtroServicio", allocationSize = 1)
	private long id;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}
	
	//

	private BigInteger cantidad;

	//uni-directional many-to-one association to Valor
	@ManyToOne
	@JoinColumn(name="SERVICIO")
	private Valor servicio;

	//bi-directional many-to-one association to Destino
	@ManyToOne
	@JoinColumn(name="DESTINO")
	private Destino destino;

	public BigInteger getCantidad() {
		return this.cantidad;
	}

	public void setCantidad(BigInteger cantidad) {
		this.cantidad = cantidad;
	}

	public Valor getServicio() {
		return this.servicio;
	}

	public void setServicio(Valor servicio) {
		this.servicio = servicio;
	}

	public Destino getDestino() {
		return this.destino;
	}

	public void setDestino(Destino destino) {
		this.destino = destino;
	}

}